<?php

namespace project\memory;

use AttributeAsyncQueue;
use CoreQueueRedis;
use CoreTraitAsync;

#[AttributeAsyncQueue("")]
class Words
{

    use CoreTraitAsync;


    public function __construct($name = '')
    {
    }

    #[AttributeAsyncQueue(CoreQueueRedis::class)]
    public static function staticTest($uids, $tag, $times)
    {
        self::_async();
    }

    public static function _async_staticTest($uids, $tag, $times)
    {
        echo json_encode(compact('uids', 'tag', 'times')), PHP_EOL;
    }

    public function test($uids, $tag, $times)
    {
        self::_async();
    }

    public function _async_test($uids, $tag, $times)
    {
        echo json_encode(compact('uids', 'tag', 'times')), PHP_EOL;
    }
}